It's unreasonable to expect newbies to know that "bug 12345" means "Task T14345"
except where it doesn't, so let's just standardise on the real numbers. (This is
just for resources/src for now; includes/ will be another day. :-))
Change-Id: I5c55bab4f7c8a26dda43de7d169cc7bddc74adc3
.mw-badge-inline {
margin-left: 3px;
display: inline-block;
- /* Hack for IE6 and IE7 (bug 47926) */
+ /* Hack for IE6 and IE7 (T49926) */
zoom: 1;
*display: inline; /* stylelint-disable-line declaration-block-no-duplicate-properties */
// Chop off characters from the end of the "inserted content" string
// until the limit is statisfied.
if ( fn ) {
- // stop, when there is nothing to slice - bug 41450
+ // stop, when there is nothing to slice - T43450
while ( $.byteLength( fn( inpParts.join( '' ) ) ) > byteLimit && inpParts[ 1 ].length > 0 ) {
inpParts[ 1 ] = inpParts[ 1 ].slice( 0, -1 );
}
}
// Always adjust prevSafeVal to reflect the input value. Not doing this could cause
// trimByteLength to compare the new value to an empty string instead of the
- // old value, resulting in trimming always from the end (bug 40850).
+ // old value, resulting in trimming always from the end (T42850).
prevSafeVal = res.newVal;
} );
} );
// Don't interfere with special clicks (e.g. to open in new tab)
if ( !( e.which !== 1 || e.altKey || e.ctrlKey || e.shiftKey || e.metaKey ) ) {
// This will hide the link we're just clicking on, which causes problems
- // when done synchronously in at least Firefox 3.6 (bug 62858).
+ // when done synchronously in at least Firefox 3.6 (T64858).
setTimeout( function () {
$.suggestions.hide( context );
}, 0 );
// Don't interfere with special clicks (e.g. to open in new tab)
if ( !( e.which !== 1 || e.altKey || e.ctrlKey || e.shiftKey || e.metaKey ) ) {
// This will hide the link we're just clicking on, which causes problems
- // when done synchronously in at least Firefox 3.6 (bug 62858).
+ // when done synchronously in at least Firefox 3.6 (T64858).
setTimeout( function () {
$.suggestions.hide( context );
}, 0 );
var $node = $( node ),
// Use data-sort-value attribute.
// Use data() instead of attr() so that live value changes
- // are processed as well (bug 38152).
+ // are processed as well (T40152).
data = $node.data( 'sortValue' );
if ( data !== null && data !== undefined ) {
( function ( $ ) {
if ( document.selection && document.selection.createRange ) {
// On IE, patch the focus() method to restore the windows' scroll position
- // (bug 32241)
+ // (T34241)
$.fn.extend( {
focus: ( function ( jqFocus ) {
return function () {
*/
function activateElementOnIE( element ) {
if ( element.setActive ) {
- element.setActive(); // bug 32241: doesn't scroll
+ element.setActive(); // T34241: doesn't scroll
} else {
$( element ).focus(); // may scroll (but we patched it above)
}
// IE
// Note that IE9 will trigger the next section unless we check this first.
- // See bug 35201.
+ // See bug T37201.
activateElementOnIE( this );
if ( context ) {
// IE doesn't properly report non-selected caret position through
// the selection ranges when textarea isn't focused. This can
// lead to saving a bogus empty selection, which then screws up
- // whatever we do later (bug 31847).
+ // whatever we do later (T33847).
activateElementOnIE( e );
preFinished = false;
// This should be moved down to '#editform', but is kept on the body for now
// because the LiquidThreads extension is re-using this module with only half
- // the EditPage (doesn't include #editform presumably, bug 55463).
+ // the EditPage (doesn't include #editform presumably, T57463).
$( document.body ).on( 'click', '#wpPreview, #wpDiff', doLivePreview );
} );
// Recheck preference so extensions can do a hack to disable this code.
if ( parseInt( mw.user.options.get( 'editondblclick' ), 10 ) ) {
e.preventDefault();
- // Trigger native HTMLElement click instead of opening URL (bug 43052)
+ // Trigger native HTMLElement click instead of opening URL (T45052)
$a = $( '#ca-edit a' );
- // Not every page has an edit link (bug 57713)
+ // Not every page has an edit link (T59713)
if ( $a.length ) {
$a.get( 0 ).click();
}
/*
* Add a checkered background image on hover for file
- * description pages. (bug 26470)
+ * description pages. (T28470)
*/
.filehistory a img,
#file img:hover {
// inside the heading (e.g. to do things like copy URL, open in new tab, ..).
// e.target can be the heading, but it can also be anything inside the heading.
if ( e.target.nodeName.toLowerCase() !== 'a' ) {
- // Trigger native HTMLElement click instead of opening URL (bug 43052)
+ // Trigger native HTMLElement click instead of opening URL (T45052)
e.preventDefault();
$edit.get( 0 ).click();
}
#catlinks {
/**
* Overrides text justification (user preference)
- * See bug 31990
+ * See T33990
*/
text-align: left;
}
border-left: 0;
}
-/* (bug 5346) make category redirects italic */
+/* (T7346) make category redirects italic */
.catlinks li a.mw-redirect {
font-style: italic;
}
text-align: center;
}
-/* red links; see bug 36276 */
+/* red links; see T38276 */
a.new {
color: #ba0000;
}
padding: 0 !important;
}
-/* External URLs should always be treated as LTR (bug 4330) */
+/* External URLs should always be treated as LTR (T6330) */
/* @noflip */ .rtl a.external.free,
.rtl a.external.autonumber {
direction: ltr;
background-repeat: no-repeat;
}
-/* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */
+/* Language specific height correction for titles. Ref T31405 and T32809 */
/* Languages like hi or ml require slightly more vertical space to show diacritics properly */
h1:lang( anp ),
h1:lang( as ),
position: relative;
}
-/* bug 12205 */
+/* T14205 */
#mw-credits a {
unicode-bidi: embed;
}
* Icons and colors for external links.
*/
-/* Bug 66091 is blocking is from converting this file to LESS
+/* T68091 is blocking is from converting this file to LESS
* and using the .background-image-svg mixin. */
/* SVG support using a transparent gradient to guarantee cross-browser
}
.mw-body a.external:visited {
- color: #636; /* bug 3112 */
+ color: #636; /* T5112 */
}
.mw-body a.external:active {
.firstHeading {
margin-bottom: 0.1em;
- /* These two rules hack around bug 2013 (fix for more limited bug 11325).
- * When bug 2013 is fixed properly, they should be removed. */
+ /* These two rules hack around T4013 (fix for more limited T13325).
+ * When T4013 is fixed properly, they should be removed. */
line-height: 1.2em;
padding-bottom: 0;
}
// Output result
if ( $( '#wpDestFile' ).length ) {
// Call decodeURIComponent function to remove possible URL-encoded characters
- // from the file name (bug 30390). Especially likely with upload-form-url.
+ // from the file name (T32390). Especially likely with upload-form-url.
// decodeURIComponent can throw an exception if input is invalid utf-8
try {
$( '#wpDestFile' ).val( decodeURIComponent( fname ) );
//
// Styleguide 2.1.
.mw-ui-button {
- // Inherit the font rather than apply user agent stylesheet (bug 70072)
+ // Inherit the font rather than apply user agent stylesheet (T72072)
font-family: inherit;
font-size: 1em;
// Container layout
display: table;
* {
- // reset font sizes (see bug 72727)
+ // reset font sizes (see T74727)
font: inherit;
vertical-align: middle;
}
// ensure the invisible checkbox takes up the required width
width: @checkboxSize;
height: @checkboxSize;
- // This is needed for Firefox mobile (See bug 71750 to workaround default Firefox stylesheet)
+ // This is needed for Firefox mobile (See T73750 to workaround default Firefox stylesheet)
max-width: none;
margin: 0 0.4em 0 0;
display: table-cell;
line-height: @radioSize;
* {
- // reset font sizes (see bug 72727)
+ // reset font sizes (see T74727)
font: inherit;
vertical-align: middle;
}
// ensure the invisible radio takes up the required width
width: @radioSize;
height: @radioSize;
- // This is needed for Firefox mobile (See bug 71750 to workaround default Firefox stylesheet)
+ // This is needed for Firefox mobile (See T73750 to workaround default Firefox stylesheet)
max-width: none;
margin-right: 0.4em;
} );
// If not found, run value through mw.Title to avoid treating a match as a
- // mismatch where normalisation would make them matching (bug 48476)
+ // mismatch where normalisation would make them matching (T50476)
pageExistsExact = (
Object.prototype.hasOwnProperty.call( pageData, this.getQueryValue() ) &&
}
// Pre-populate with fake ajax promises to save http requests for tokens
- // we already have on the page via the user.tokens module (bug 34733).
+ // we already have on the page via the user.tokens module (T36733).
promises[ defaultOptions.ajax.url ] = {};
$.each( mw.user.tokens.get(), function ( key, value ) {
// This requires #getToken to use the same key as user.tokens.
el.media = media;
}
// If you end up here from an IE exception "SCRIPT: Invalid property value.",
- // see #addEmbeddedCSS, bug 31676, and bug 47277 for details.
+ // see #addEmbeddedCSS, T33676, and T49277 for details.
el.href = url;
$( getMarker() ).before( el );
* { <media>: css }
* { <media>: [url, ..] }
*
- * The reason css strings are not concatenated anymore is bug 31676. We now check
+ * The reason css strings are not concatenated anymore is T33676. We now check
* whether it's safe to extend the stylesheet.
*
* @protected
// Support: IE 7-8
// Use properties instead of attributes as IE throws security
// warnings when inserting a <link> tag with a protocol-relative
- // URL set though attributes - when on HTTPS. See bug 41331.
+ // URL set though attributes - when on HTTPS. See T43331.
l = document.createElement( 'link' );
l.rel = 'stylesheet';
l.href = modules;
}
// Update tooltip for the access key after inserting into DOM
- // to get a localized access key label (bug 67946).
+ // to get a localized access key label (T69946).
$link.updateTooltipAccessKeys();
return $item[ 0 ];
var page, url;
// Generate the same URL on client side as the one generated in ImagePage::openShowImage.
- // We avoid using the URL in the link directly since it could have been manipulated (bug 66608)
+ // We avoid using the URL in the link directly since it could have been manipulated (T68608)
page = Number( mw.util.getParamValue( 'page', this.href ) );
url = mw.util.getUrl( mw.config.get( 'wgPageName' ), { page: page } );
updateWatchLink( $link, otherAction );
// Update the "Watch this page" checkbox on action=edit when the
- // page is watched or unwatched via the tab (bug 12395).
+ // page is watched or unwatched via the tab (T14395).
$( '#wpWatchthis' ).prop( 'checked', watchResponse.watched === true );
} )
.fail( function () {